body {
	position: relative;
}

.title {
	padding-top: 20px;
}

form {
	min-width: 50%;
	margin: 0 auto;
}

form .item {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 20px 0;
}

form .item .name {
	flex: none;
	width: 60px;
	padding-right: 10px;
}

form .item .contain {
	flex: 1;
}

form .item .contain.type {
	display: flex;
	padding: 8px 0;
}

form .item .contain.type label {
	flex: 1;
}

form .item input {
	line-height: 36px;
	padding: 2px 10px;
	outline: none;
	border-radius: 4px;
	border: 1px solid #ddd;
}

form .item select {
	padding: 11px 10px;
	outline: none;
	border-radius: 4px;
	border: 1px solid #ddd;
}

#submit {
	line-height: 22px;
	margin-top: 50px;
}

.dialog {
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.dialog .context {
	width: 300px;
	box-shadow: 0 0 5px gray;
	border-radius: 4px;
	animation: dialogAnimate 0.5s;
}

.dialog .context .header {
	padding: 10px 10px;
	background: #1e88e5;
	border-radius: 4px 4px 0 0;
	color: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
}

.dialog .context .header > span {
	flex: 1;
}

.dialog .context .header > i {
	width: 20px;
	text-align: center;
	cursor: pointer;
}

.dialog .context .body {
	padding: 20px 10px;
	background: #fff;
}

.dialog .context .footer {
	padding: 10px;
	background: #fff;
	border-radius: 0 0 4px 4px;
	overflow: auto;
}

.dialog.error {
	display: none;
}

.dialog.error .header {
	background: #ff2727;
}

.dialog.error .body {
	color: #636363;
}

.dialog.pay {
	display: none;
}

.dialog.pay .context {
	width: 500px;
}

.dialog.pay .context .body {
	text-align: center;
	color: #333;
}

.dialog.pay .context .body .top {
	color: #999;
	font-size: 14px;
}

.dialog.pay .context .body .price {
	font-size: 30px;
	color: #d44d44;
	font-weight: 700;
	padding: 8px 0;
}

.dialog.pay .context .body .qrcode {
	display: block;
	margin: 0 auto;
	width: 30%;
	padding: 5px;
	border-radius: 4px;
}

.dialog.pay .context .body .scan {
	width: 35%;
	padding: 5px 10px;
	background: #445f85;
	font-size: 12px;
	color: #fff;
	margin: 0 auto;
	margin-top: 15px;
	line-height: 18px;
	border-radius: 2px;
	display: none;
}

.dialog.pay .context .body .scan.alipay {
	background: #00a1e9;
}

.dialog.pay .context .body .second {
	margin: 30px 0;
	font-size: 14px;
}

.dialog.pay .context .body .second label {
	font-weight: bold;
	color: red;
	padding: 0 4px;
}

.dialog.pay .context .footer .how {
	color: #989898;
	font-size: 12px;
	cursor: pointer;
	line-height: 30px;
}

.dialog.pay .context .footer .btn {
	display: none;
	float: right;
	width: 100px;
	text-align: center;
	line-height: 30px;
	height: 30px;
	border-radius: 4px;
	background: #ffab40;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

.dialog.result {
	display: none;
}

.dialog.result .body {
	text-align: center;
}

.dialog.result .body i {
	font-size: 100px;
	color: #1e88e5;
}

.dialog.result .body .msg {
	color: #888;
	font-size: 14px;
}

.dialog.result .body .btn {
	display: inline-block;
	width: 100px;
	line-height: 30px;
	background: #ffab40;
	color: #fff;
	margin-top: 20px;
	font-size: 12px;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
}

/**---------- 动画 ----------*/
@keyframes dialogAnimate {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@-moz-keyframes dialogAnimate {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@-webkit-keyframes dialogAnimate {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@-o-keyframes dialogAnimate {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
/**---------- 动画 ----------*/

@media screen and (max-width: 940px) {
	.shopping_h1 {
		font-size: 40px;
	}
	.shopping_p {
		font-size: 20px;
	}
	form {
		min-width: 60%;
	}
	.dialog.error .context,
	.dialog.result .context {
		width: 250px;
	}
	.dialog.pay .context {
		width: 400px;
	}
}

@media screen and (max-width: 720px) {
	.shopping_h1 {
		font-size: 32px;
	}
	.shopping_p {
		font-size: 18px;
	}
	form {
		min-width: 80%;
	}
	.dialog.error .context,
	.dialog.result .context {
		width: 220px;
	}
	.dialog.pay .context {
		width: 80%;
	}
	.dialog.pay .context .body .qrcode {
		width: 50%;
	}
	.dialog.pay .context .body .scan {
		width: 65%;
	}

	.dialog.result .context .body i {
		font-size: 80px;
	}
}
